home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / m / maxonc++2.dms / maxonc++2.adf / MCPIncl.lha / assert.h next >
C/C++ Source or Header  |  1992-02-10  |  233b  |  12 lines

  1. #ifndef __INCLUDE_ASSERT_H
  2. #define __INCLUDE_ASSERT_H
  3.  
  4. #ifdef NDEBUG
  5. #define assert(C)
  6. #else
  7. extern "Asm" void do__assert(char*, char*, unsigned int);
  8. #define assert(C) { if(!(C)) do__assert(#C, __FILE__, __LINE__); }
  9. #endif
  10.  
  11. #endif
  12.